package action;

import ui.MainDesktop;
import ui.input.CommonInputPane;

public abstract class AbstractAction implements Runnable {

	protected String name = null;

	protected CommonInputPane[] inputPanes = null;

	protected MainDesktop desktop = null;

	public AbstractAction(MainDesktop desktop) {
		this.desktop = desktop;
	}

	public String toString() {
		return name;
	}

	public CommonInputPane[] getInputPanes() {
		return inputPanes;
	}

	public boolean isParamsReady() {
		for (CommonInputPane inputPane : inputPanes) {
			if (inputPane.getInputValue().length() == 0) {
				return false;
			}
		}

		return true;
	}

	public abstract int getFileCount();

}
